package cn.dengta.webapp.user.form.query;

import cn.dengta.context.model.WesKit;
import cn.dengta.webapp.base.form.BaseForm;
import cn.dengta.webapp.user.entity.Feedback;
import cn.dengta.webapp.user.entity.Feedback.FeedbackType;
import cn.dengta.webapp.user.model.Gender;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class FeedbackQuery extends BaseForm<Feedback> {

	/** ID */
	public Long id;
	/** 用户ID */
	public Long userId;
	/** 类型 */
	public FeedbackType type;
	/** 性别 */
	public Gender gender;
	/** 昵称 */
	public String nickname;
	/** 分包 */
	private WesKit wesKit;

	public void setType(Integer type) {
		this.type = FeedbackType.of(type);
	}

	public void setGender(Integer gender) {
		this.gender = Gender.of(gender);
	}

	public void setWesKit(Integer wesKit) {
		this.wesKit = WesKit.of(wesKit);
	}

}
